import { GENDER } from '@/enum/user';
import { Column, Entity, PrimaryGeneratedColumn, Timestamp } from 'typeorm';
import { BaseEntity } from './base.entity';

@Entity('study_match_user_message')
export class StudyMatchUserMessge extends BaseEntity {
  @PrimaryGeneratedColumn({
    type: 'int',
    name: 'id',
    comment: '主键，自增',
  })
  id: number;

  @Column({
    type: 'int',
    name: 'user_id',
    comment: '用户id',
    nullable: false,
  })
  userId: number;

  @Column({
    type: 'int',
    name: 'sex',
    comment: '对方的性别，1为男，2为女',
    nullable: false,
  })
  sex: GENDER;

  @Column({
    type: 'int',
    name: 'age',
    comment: '年龄（year）',
    nullable: false,
  })
  age: number;

  @Column({
    type: 'int',
    name: 'height',
    comment: '身高（cm）',
    nullable: false,
  })
  height: number;

  @Column({
    type: 'varchar',
    name: 'college',
    comment: '学院',
    nullable: true,
  })
  college?: string;

  @Column({
    type: 'varchar',
    name: 'home',
    comment: '家乡',
    nullable: false,
  })
  home: string;

  @Column({
    type: 'varchar',
    name: 'now_stay',
    comment: '现在所在城市',
    nullable: false,
  })
  nowStay: string;

  @Column({
    type: 'varchar',
    name: 'phone',
    comment: '手机号',
    nullable: false,
  })
  phone: string;

  @Column({
    type: 'varchar',
    name: 'personal_tips',
    comment: '个人标签',
    nullable: false,
  })
  personalTips: string;

  @Column({
    name: 'birthday',
    type: 'varchar',
    nullable: false,
    comment: '生日',
  })
  birthday: string;
}
